package Year2021.month10.Day21.Day25;

import java.util.Scanner;

public class CarTest {
    public static void main(String[] args) {
        VehicleInspectionCenter v=new VehicleInspectionCenter();
        v.phone="123456789";
        v.address="火星上";
        v.show();
        Dazhong dazhong=new Dazhong("大众","灰色","001");
        dazhong.show();
        dazhong.startUp();
        dazhong.speedUP();
        dazhong.brake();
        Wuling wuling=new Wuling("五菱","黄色","002");
        wuling.show();
        wuling.startUp();
        wuling.speedUP();
        wuling.brake();
        Benchi benchi=new Benchi("奔驰","黑色" ,"003");
        benchi.show();
        benchi.startUp();
        benchi.speedUP();
        benchi.brake();
        Scanner in=new Scanner(System.in);
        System.out.println("请输入测试的速度值");
        int startUp=in.nextInt();
        int speedUP=in.nextInt();
        int brake=in.nextInt();
        boolean k1=v.normal(startUp,speedUP,brake,dazhong.brand);
        System.out.println(k1?"检测正常":"检测不正常");
        boolean k2=v.normal(startUp,speedUP,brake,wuling.brand);
        System.out.println(k2?"检测正常":"检测不正常");
        boolean k3=v.normal(startUp,speedUP,brake,benchi.brand);
        System.out.println(k3?"检测正常":"检测不正常");


    }
}
